package com.kaifamiao.demo.d0801.pm;

public class Test02 {

    public static void main(String[] args) {
        ManFactory factory = new BlackManFactory();

        Man black = factory.createMan();
        black.printGender();
        black.printColor();

        factory = new WhiteManFactory();
        Woman white = factory.createWoman();
        white.printGender();
        white.printColor();
    }
}
